require "Common/define"
require "Logic/Config"
require "Net/send_Msg"
require "Logic/SkinManager"
require "proto/skin/message/ReqSwitchSkinMessage"

skinHandler = skinHandler or {};

function skinHandler.receiveSkinInfoPush(msg)
   logicMgr.SkinManager.saveSkinInfo(msg)
end

function skinHandler.sendUseSkin(skinId,partnerId)
    local req = ReqSwitchSkinMessage.New()
    req.skinId = skinId
    req.heroId = partnerId
    sendReqMessage(req)
end

function skinHandler.receiveUseSkin(msg)
    logicMgr.SkinManager.setSkinWear(msg)
end

